package com.hx.voice.recognition.common.msg;

import lombok.Data;

/**
 * @descripe：列表返回响应集
 * @company：南京华讯方舟通讯设备有限公司
 * @author：zhoujinbing
 * @time：2019/6/12 14:31
 * @version：V1.0
 */
@Data
public class ListRestResponse<T>{

    String msg;
    T result;
    int count;

    public ListRestResponse count(int count)
    {
        this.setCount(count);
        return this;
    }

    public ListRestResponse count(Long count)
    {
        this.setCount(count.intValue());
        return this;
    }

    public ListRestResponse msg(String msg)
    {
        this.setMsg(msg);
        return this;
    }

    public ListRestResponse result(T result)
    {
        this.setResult(result);
        return this;
    }


}